<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/common/default.jsp"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>用工申请</title>
		<style type="text/css">
		.advance_tip_pwd{
			background-color: #fff;
		    left: 42%;
		    position: fixed;
		    top: 200px;
		    width: 487px;
		    z-index: 5;
		}
		</style>
	</head>
	
	<body>
		<div class="cinema_tip">
		    <div class="cinema_subject clearfix">
		        <div class="cinema_title">
		            <a href="#">用工管理</a>
		            >
		            <a href="#" class="cinema_option">用工申请</a>
		        </div>
		    </div>
			<form  id="sysUserInfoSearchForm" method="get">
		       <div class="cinema_search clearfix">
					<div class="cinema_button">
				        	<input id="sysUserInfoSearch" type="submit" value="查询" name="" style="float: none;" class="cinema_inquiry movie_no">
					</div>
					<div class="cinema_condition width_84">
						<div class="cinema_smart">
							<div class="cinema_inter">
								<!-- <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 用户名： </label> -->
								<input type="text" id="mileageCode" name="mileageCode" maxlength="50" placeholder="用工编号" class="col-xs-10 col-sm-2" value="${res.data.mileageCode}"/>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
		<div class="cinema_list">
		    <div class="movie_button">
					<a class="movie_new" href="${ctx}/sys/apply/toAdd" style="background-color:#4bd083; color: #fff;">新建申请</a>
		    <div>
			    <div class="column_content1"  >
			        <table id="sysUserInfoDatas" width="100%" height="" border="0" cellpadding="0" cellspacing="1" class="border_top">
			            <tr style="background-color: rgb(243, 247, 255);">
			                <th nowrap="" style="padding:0px 5px;width:100px">申请编号</th>
			                <th nowrap="" style="padding:0px 5px;width:100px">内容</th>
			                <th nowrap="" style="padding:0px 5px;width:100px">工程类别</th>
			                <th nowrap="" style="padding:0px 5px;width:100px">工程量</th>
			                <th nowrap="" style="padding:0px 5px;width:100px">施工工时</th>
			                <th nowrap="" style="padding:0px 5px;width:100px">工时单价</th>
			                <th nowrap="" style="padding:0px 5px;width:100px">费用</th>
			                <th nowrap="" style="padding:0px 5px;width:100px">是否合同外</th>
			                <th nowrap="" style="padding:0px 5px;width:100px">申请人</th>
			                <th nowrap="" style="padding:0px 5px;width:100px">申请时间</th>
			                <th nowrap="" style="padding:0px 5px;width:100px">审批状态</th>
			                <th nowrap="" style="padding:0px 5px;width:100px">操作</th>
			            </tr>
			            <c:forEach var="res" items="${res.data.rows}">
				            <tr class="odd" style="background-color: #fff;" id="userinfo_row_${res.applyId}" >
				                 <td style="padding:0px 5px;width:200px" title="${res.mileageCode}">${res.mileageCode}</td>
				                 <td  style="padding:0px 5px;width:200px" title="${res.applyContent}">${res.applyContent}</td>
				                 <td  style="padding:0px 5px;width:200px" title="${res.projectId}">${res.projectId}</td>
				                 <td  style="padding:0px 5px;" title="${res.quantities}">${res.quantities}</td>
				                 <td  style="padding:0px 5px;" title="${res.onstructionHour}">${res.onstructionHour}</td>
				                 <td  style="padding:0px 5px;" title="${res.hourPrice}">${res.hourPrice}</td>
				                 <td  style="padding:0px 5px;" title="${res.fee}">${res.fee}</td>
				                 <td  style="padding:0px 5px;" title="${res.isPlan}">${res.isPlan}</td>
				                 <td  style="padding:0px 5px;" title="${res.applyUserId}">${res.applyUserId}</td>
				                 <td  style="padding:0px 5px;" title="${res.applyTime}"><fmt:formatDate value="${res.applyTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				                 <td  style="padding:0px 5px;" title="${res.state}">
				                 <c:choose>
				                 	<c:when test="${res.state==0}">未审批</c:when>
				                 	<c:when test="${res.state==2}">已审批</c:when>
				                 </c:choose>
				                 </td>
				                 <td style="padding:0px 5px;" >
				                 	<a style="margin-left: 3%;" href="${ctx}/sys/apply/toEdit?id=${res.applyId}" title="编辑用户">编辑</a>
				                 	<a  style="margin-left: 3%;" href="${ctx}/sys/apply/toDel?id=${res.applyId}" title="删除用户">删除</a>
								</td>
				             </tr>
			            </c:forEach>
					</table>
				</div>
			</div><!-- /.row -->
			<div id="manager_page" class="manager_page clearfix">
				<!-- 分页跳转 -->
				<div class="manager_show">
					<p><span>跳转至</span><input id="pagenum" type="text" name="" value="${res.data.page}"/></p>
					<span id="toPage" class="manager_true"></span>
				</div>
				<!-- 分页数字导航栏 -->
				<div id="manager_number" class="manager_number"></div>
				<input type="hidden"  id=records  value="${res.data.records}"/>			<!-- 总记录数 -->
				<input type="hidden"  id="pageSize"  value="${res.data.pageSize}"/>  <!-- 每页个数 -->
				<input type="hidden"  id="pageCurrent"  value="${res.data.page}"/>  <!-- 当前页page -->
				<input type="hidden"  id="totalPage"  value="${res.data.total}"/>	    <!-- 总页数 -->
			</div>
		</div>
	</body>
	
</html>
